package character;

public class CharacterOp {
    public static void main(String[] agrs){
        Character c1=new Character('a');
        Character c2=new Character('a');
        Character c3=new Character('b');
        int d=c1.compareTo(c3);//数值比较
        if (d==0)
            System.out.println("c1=c3");
        else if (d<0)
            System.out.println("c1<c3");
        else if (d>0)
            System.out.println("c1>c3");
        System.out.println("c1"+((c1.equals(c2))?"等于":"不等于")+"c2");//判断是否相等
        System.out.println(c1.toString()+"是"+(Character.isUpperCase(c1.charValue())?"大写":"小写"));//判断大小写


    }
}
